// 分享到聊天框、朋友圈
/**
 * @param {type} = [1: 文字, 2: 图片]
 */
export default {
  shareToCircle({ type, summary = "", imageUrl = "" }) {
    console.log(uni.share, "========");
    uni.share({
      provider: "weixin",
      scene: "WXSceneTimeline",
      type,
      summary: type === 1 && summary,
      imageUrl: type === 2 && imageUrl,
      success: (res) => {
        console.log(res);
      },
      fail: (err) => {
        console.log(err);
      },
    });
  },
};
